import {request} from './requestConfig.js'

export function createOrderData(data){
	return request({
		url: "/order/",
		method: "post",
		data
	})
}

export function getAllOrders(pay_status){
	return request({
		url: "/order/?pay_status=" + pay_status,
		method: "get",
	})
}

export function getAllOrdersByTradeNo(data){
	return request({
		url: "/order/good/" + data,
		method: "get",
	})
}